Component({
  behaviors: [require("@/behaviors/com-base-behavior")],
  options: {
    virtualHost: true,
    pureDataPattern: /^_/,
    dynamicSlots: true,
  },
  properties: {
    frame: {
      type: Array,
      value: [],
    },
    columnCount: {
      type: Number,
      value: 5,
    },
    gap: {
      type: Number,
      value: 8,
    },
  },
  methods: {
    imageTap(e: WechatMiniprogram.TouchEvent) {
      let item: ImageLink =
        this.properties.frame[e.currentTarget.dataset.index];
      console.log("grid-link item tap", e.currentTarget.dataset.index, item);
    },
  },
});
